import App from './App'
import store from 'store/store.js'

uni.$showMsg = (title = '数据请求失败', duration = 1000) => {
	uni.showToast({
		title,
		duration
	})
}

const SYSTEM_INFO = uni.getSystemInfoSync()
uni.$contentHeight = SYSTEM_INFO.windowHeight
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
Vue.filter('priceFormat',(price) => {
	return price.toFixed(2)
})
// #endif


// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
